home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / dpkg / info / jockey-common.postinst < prev    next >
Encoding:
Text File  |  2009-04-07  |  1.3 KB  |  43 lines

  1. #!/bin/sh -e
  2.  
  3. if [ "$1" = configure ] || [ "$1" = reconfigure ]; then
  4.     getent group admin > /dev/null 2>&1 || addgroup --system --quiet admin
  5.     chown root:admin /var/cache/jockey
  6.     chmod 3775 /var/cache/jockey
  7.  
  8.     if dpkg --compare-versions "$2" lt-nl "0.3"; then
  9.         # format changed between 0.2 and 0.3
  10.         rm -f /var/cache/jockey/check
  11.     fi
  12.  
  13.     # clean up after restricted-manager->jockey package transition
  14.     if dpkg --compare-versions "$2" lt "0.3.3-0ubuntu3"; then
  15.         rm -f /etc/xdg/autostart/restricted-manager.desktop
  16.     fi
  17.  
  18.     # modutils recently introduced .conf suffix requirement
  19.     if dpkg --compare-versions "$2" lt-nl "0.5-0ubuntu3"; then
  20.     for f in /etc/modprobe.d/blacklist-bcm43 /etc/modprobe.d/blacklist-local; do
  21.         if [ -e "$f" ] && [ ! -e "$f.conf" ]; then
  22.         mv "$f" "$f.conf"
  23.         fi
  24.     done
  25.     fi
  26. fi
  27.  
  28. # Automatically added by dh_pycentral
  29. rm -f /var/lib/pycentral/jockey-common.pkgremove
  30. if which pycentral >/dev/null 2>&1; then
  31.     pycentral pkginstall jockey-common
  32.     if grep -qs '^jockey-common$' /var/lib/pycentral/delayed-pkgs; then
  33.         sed -i '/^jockey-common$/d' /var/lib/pycentral/delayed-pkgs
  34.     fi
  35. fi
  36. # End automatically added section
  37. # Automatically added by dh_icons
  38. if which update-icon-caches >/dev/null 2>&1 ; then
  39.     update-icon-caches /usr/share/icons/hicolor
  40. fi
  41. # End automatically added section
  42.  
  43.